﻿using Abp.Domain.Entities;
using Abp.Notifications;
using BXJG.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace ZLJ.Web.Host.Pages
{
    public partial class Main
    {
        [Inject]
        public INotificationPublisher NotificationPublisher { get; set; }

        protected override void OnInitialized()
        {
            base.OnInitialized();
        }
        //[Inject]
        //public IMessageService MessageService { get; set; }
        async Task ButtonClick()
        {
            await this.NotificationPublisher.PublishAsync("xxx",
                new MessageNotificationData("xxxxxx"),
                userIds: new Abp.UserIdentifier[] { Abp.UserIdentifier.Parse($"{UserId}@{TenantId}") });
           // btnText = DateTime.Now.ToString();
        }
    }
}
